import request from '@/utils/request'

// 查询客户年度统计信息-总列表
export function listScmStatsCustomerYearly(query) {
  return request({
    url: '/scm/scmStatsCustomerYearly/list',
    method: 'get',
    params: query
  })
}

// 查询客户年度统计信息-总详细
export function getScmStatsCustomerYearly(id) {
  return request({
    url: '/scm/scmStatsCustomerYearly/' + id,
    method: 'get'
  })
}

// 新增客户年度统计信息-总
export function addScmStatsCustomerYearly(data) {
  return request({
    url: '/scm/scmStatsCustomerYearly',
    method: 'post',
    data: data
  })
}

// 修改客户年度统计信息-总
export function updateScmStatsCustomerYearly(data) {
  return request({
    url: '/scm/scmStatsCustomerYearly',
    method: 'put',
    data: data
  })
}

// 删除客户年度统计信息-总
export function delScmStatsCustomerYearly(id) {
  return request({
    url: '/scm/scmStatsCustomerYearly/' + id,
    method: 'delete'
  })
}
